import request from '@/utils/request'

// 查询职业类别信息列表
export function listCKoccupation(query) {
  return request({
    url: '/chengkao/CKoccupation/list',
    method: 'get',
    params: query
  })
}

// 查询职业类别信息详细
export function getCKoccupation(id) {
  return request({
    url: '/chengkao/CKoccupation/' + id,
    method: 'get'
  })
}

// 新增职业类别信息
export function addCKoccupation(data) {
  return request({
    url: '/chengkao/CKoccupation',
    method: 'post',
    data: data
  })
}

// 修改职业类别信息
export function updateCKoccupation(data) {
  return request({
    url: '/chengkao/CKoccupation',
    method: 'put',
    data: data
  })
}

// 删除职业类别信息
export function delCKoccupation(id) {
  return request({
    url: '/chengkao/CKoccupation/' + id,
    method: 'delete'
  })
}
